<?php
// +----------------------------------------------------------------------
// | ITKEE [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2017 http://www.itkee.cn.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: SuperMan <superman@itkee.cn>
// +----------------------------------------------------------------------
// | 首页管理
// +----------------------------------------------------------------------
namespace app\index\controller;
use app\common\controller\HomeBase;
use think\Db;

class Index extends HomeBase
{
    protected function _initialize()
    {
        parent::_initialize();
    }

    /**
     * 首页入口
     */
    public function index(){
        //首页轮播图
        $banners = Db::name('slide')->where(['cid'=>1,'status'=>1])->limit(5)->order('sort desc,id desc')->select();
        $this->assign('banners',$banners);
        $this->assign('this_controller','index');
        return $this->fetch();
    }
    
    /*
     * 服务体系
     */
    public function servicesystem() {
        $this->assign('this_controller','servicesystem');
        return $this->fetch();
    }
    
    /*
     * 关于我们
     */
    public function about() {
        $this->assign('this_controller','about');
        return $this->fetch();
    }
    
    /*
     * 田园综合体
     */
    public function ruralcomplex() {
        $this->assign('this_controller','characteristicbusiness');
        return $this->fetch();
    }
    
    /*
     * 特色小镇
     */
    public function specialtown() {
         $this->assign('this_controller','characteristicbusiness');
         return $this->fetch();
    }
    
    /*
     * 特色业务
     */
    public function characteristicbusiness() {
         $this->assign('this_controller','characteristicbusiness');
         return $this->fetch();
    }
    
    /*
     * 
     */
    public function servicedetail() {
        $this->assign('this_controller','servicedetail');
        return $this->fetch();
    }
}
